package info.techgeek.labs.java5Features.varargs;

public class Varargs {
    public static void main(String[] args) {
        /*int passed = 0;
        int failed = 0;
        for (String className : args) {
            try {
                Class c = Class.forName(className);
                c.getMethod("test").invoke(c.newInstance());
                passed++;*/
                getNo(1,2,2,3,3);
            /*} catch (Exception ex) {
                System.out.printf("%s failed: %s%n", className, ex);
                failed++;
            }
        }
        System.out.printf("passed=%d; failed=%d%n", passed, failed);*/
    }
    
    private static int getNo(int s ,int...x){
    	System.out.println("s"+s);
    	for( int i =0 ;i<x.length ;i++){
    		System.out.println("x"+x[i]);
    	}
		return 0;
    	
    }
}